package com.bruan.create_thread;

public class ThreadTest2 {
    public static void main(String[] args) {
        //3.创建任务对象
        Runnable target =  new MyRunnable();
        //4.把任务对象交给线程对象并且启动
        new Thread(target).start();
        for (int i = 0; i < 10; i++) {
            System.out.println("主线程");
        }
    }
}
